import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { Media, MediaObject } from '@ionic-native/media';
import { StreamingMedia, StreamingVideoOptions } from '@ionic-native/streaming-media';
import { DomSanitizer } from '@angular/platform-browser'; 

@IonicPage()
@Component({
  selector: 'page-person',
  templateUrl: 'person.html',
})
export class PersonPage {
  file:MediaObject;
  video:any;
  
  constructor(public navCtrl: NavController, public navParams: NavParams,private media: Media,private streamingMedia: StreamingMedia,private sanitizer: DomSanitizer) {
    this.video="https://v.youku.com/v_show/id_XMzU0NjIyOTgyMA==.html?spm=a2hww.20027244.m_250036.5~5!2~5~5!3~5~5~A&f=51674776";
    this.video = this.sanitizer.bypassSecurityTrustResourceUrl(this.video);
  }
 

}
